package com.example.demo.utils;

import com.example.demo.service.ScheduleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;

//@Component
public class PostStartupRunner implements ApplicationRunner {

    @Autowired
    private ScheduleService scheduleService;

    @Override
    public void run(ApplicationArguments args) throws Exception {
//        scheduleService.init();

        System.out.println("规则数据已经从数据库加载并存储到 Store 缓存中");
    }
}
